package com.yidu.boss.sys.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class BrokerExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public BrokerExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andBrokeridIsNull() {
            addCriterion("brokerId is null");
            return (Criteria) this;
        }

        public Criteria andBrokeridIsNotNull() {
            addCriterion("brokerId is not null");
            return (Criteria) this;
        }

        public Criteria andBrokeridEqualTo(String value) {
            addCriterion("brokerId =", value, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridNotEqualTo(String value) {
            addCriterion("brokerId <>", value, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridGreaterThan(String value) {
            addCriterion("brokerId >", value, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridGreaterThanOrEqualTo(String value) {
            addCriterion("brokerId >=", value, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridLessThan(String value) {
            addCriterion("brokerId <", value, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridLessThanOrEqualTo(String value) {
            addCriterion("brokerId <=", value, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridLike(String value) {
            addCriterion("brokerId like", value, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridNotLike(String value) {
            addCriterion("brokerId not like", value, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridIn(List<String> values) {
            addCriterion("brokerId in", values, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridNotIn(List<String> values) {
            addCriterion("brokerId not in", values, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridBetween(String value1, String value2) {
            addCriterion("brokerId between", value1, value2, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridNotBetween(String value1, String value2) {
            addCriterion("brokerId not between", value1, value2, "brokerid");
            return (Criteria) this;
        }

        public Criteria andSeatidIsNull() {
            addCriterion("seatId is null");
            return (Criteria) this;
        }

        public Criteria andSeatidIsNotNull() {
            addCriterion("seatId is not null");
            return (Criteria) this;
        }

        public Criteria andSeatidEqualTo(String value) {
            addCriterion("seatId =", value, "seatid");
            return (Criteria) this;
        }

        public Criteria andSeatidNotEqualTo(String value) {
            addCriterion("seatId <>", value, "seatid");
            return (Criteria) this;
        }

        public Criteria andSeatidGreaterThan(String value) {
            addCriterion("seatId >", value, "seatid");
            return (Criteria) this;
        }

        public Criteria andSeatidGreaterThanOrEqualTo(String value) {
            addCriterion("seatId >=", value, "seatid");
            return (Criteria) this;
        }

        public Criteria andSeatidLessThan(String value) {
            addCriterion("seatId <", value, "seatid");
            return (Criteria) this;
        }

        public Criteria andSeatidLessThanOrEqualTo(String value) {
            addCriterion("seatId <=", value, "seatid");
            return (Criteria) this;
        }

        public Criteria andSeatidLike(String value) {
            addCriterion("seatId like", value, "seatid");
            return (Criteria) this;
        }

        public Criteria andSeatidNotLike(String value) {
            addCriterion("seatId not like", value, "seatid");
            return (Criteria) this;
        }

        public Criteria andSeatidIn(List<String> values) {
            addCriterion("seatId in", values, "seatid");
            return (Criteria) this;
        }

        public Criteria andSeatidNotIn(List<String> values) {
            addCriterion("seatId not in", values, "seatid");
            return (Criteria) this;
        }

        public Criteria andSeatidBetween(String value1, String value2) {
            addCriterion("seatId between", value1, value2, "seatid");
            return (Criteria) this;
        }

        public Criteria andSeatidNotBetween(String value1, String value2) {
            addCriterion("seatId not between", value1, value2, "seatid");
            return (Criteria) this;
        }

        public Criteria andBrokernameIsNull() {
            addCriterion("brokerName is null");
            return (Criteria) this;
        }

        public Criteria andBrokernameIsNotNull() {
            addCriterion("brokerName is not null");
            return (Criteria) this;
        }

        public Criteria andBrokernameEqualTo(String value) {
            addCriterion("brokerName =", value, "brokername");
            return (Criteria) this;
        }

        public Criteria andBrokernameNotEqualTo(String value) {
            addCriterion("brokerName <>", value, "brokername");
            return (Criteria) this;
        }

        public Criteria andBrokernameGreaterThan(String value) {
            addCriterion("brokerName >", value, "brokername");
            return (Criteria) this;
        }

        public Criteria andBrokernameGreaterThanOrEqualTo(String value) {
            addCriterion("brokerName >=", value, "brokername");
            return (Criteria) this;
        }

        public Criteria andBrokernameLessThan(String value) {
            addCriterion("brokerName <", value, "brokername");
            return (Criteria) this;
        }

        public Criteria andBrokernameLessThanOrEqualTo(String value) {
            addCriterion("brokerName <=", value, "brokername");
            return (Criteria) this;
        }

        public Criteria andBrokernameLike(String value) {
            addCriterion("brokerName like", value, "brokername");
            return (Criteria) this;
        }

        public Criteria andBrokernameNotLike(String value) {
            addCriterion("brokerName not like", value, "brokername");
            return (Criteria) this;
        }

        public Criteria andBrokernameIn(List<String> values) {
            addCriterion("brokerName in", values, "brokername");
            return (Criteria) this;
        }

        public Criteria andBrokernameNotIn(List<String> values) {
            addCriterion("brokerName not in", values, "brokername");
            return (Criteria) this;
        }

        public Criteria andBrokernameBetween(String value1, String value2) {
            addCriterion("brokerName between", value1, value2, "brokername");
            return (Criteria) this;
        }

        public Criteria andBrokernameNotBetween(String value1, String value2) {
            addCriterion("brokerName not between", value1, value2, "brokername");
            return (Criteria) this;
        }

        public Criteria andDecsIsNull() {
            addCriterion("decs is null");
            return (Criteria) this;
        }

        public Criteria andDecsIsNotNull() {
            addCriterion("decs is not null");
            return (Criteria) this;
        }

        public Criteria andDecsEqualTo(String value) {
            addCriterion("decs =", value, "decs");
            return (Criteria) this;
        }

        public Criteria andDecsNotEqualTo(String value) {
            addCriterion("decs <>", value, "decs");
            return (Criteria) this;
        }

        public Criteria andDecsGreaterThan(String value) {
            addCriterion("decs >", value, "decs");
            return (Criteria) this;
        }

        public Criteria andDecsGreaterThanOrEqualTo(String value) {
            addCriterion("decs >=", value, "decs");
            return (Criteria) this;
        }

        public Criteria andDecsLessThan(String value) {
            addCriterion("decs <", value, "decs");
            return (Criteria) this;
        }

        public Criteria andDecsLessThanOrEqualTo(String value) {
            addCriterion("decs <=", value, "decs");
            return (Criteria) this;
        }

        public Criteria andDecsLike(String value) {
            addCriterion("decs like", value, "decs");
            return (Criteria) this;
        }

        public Criteria andDecsNotLike(String value) {
            addCriterion("decs not like", value, "decs");
            return (Criteria) this;
        }

        public Criteria andDecsIn(List<String> values) {
            addCriterion("decs in", values, "decs");
            return (Criteria) this;
        }

        public Criteria andDecsNotIn(List<String> values) {
            addCriterion("decs not in", values, "decs");
            return (Criteria) this;
        }

        public Criteria andDecsBetween(String value1, String value2) {
            addCriterion("decs between", value1, value2, "decs");
            return (Criteria) this;
        }

        public Criteria andDecsNotBetween(String value1, String value2) {
            addCriterion("decs not between", value1, value2, "decs");
            return (Criteria) this;
        }

        public Criteria andRemark1IsNull() {
            addCriterion("remark1 is null");
            return (Criteria) this;
        }

        public Criteria andRemark1IsNotNull() {
            addCriterion("remark1 is not null");
            return (Criteria) this;
        }

        public Criteria andRemark1EqualTo(String value) {
            addCriterion("remark1 =", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1NotEqualTo(String value) {
            addCriterion("remark1 <>", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1GreaterThan(String value) {
            addCriterion("remark1 >", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1GreaterThanOrEqualTo(String value) {
            addCriterion("remark1 >=", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1LessThan(String value) {
            addCriterion("remark1 <", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1LessThanOrEqualTo(String value) {
            addCriterion("remark1 <=", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1Like(String value) {
            addCriterion("remark1 like", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1NotLike(String value) {
            addCriterion("remark1 not like", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1In(List<String> values) {
            addCriterion("remark1 in", values, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1NotIn(List<String> values) {
            addCriterion("remark1 not in", values, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1Between(String value1, String value2) {
            addCriterion("remark1 between", value1, value2, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1NotBetween(String value1, String value2) {
            addCriterion("remark1 not between", value1, value2, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark2IsNull() {
            addCriterion("remark2 is null");
            return (Criteria) this;
        }

        public Criteria andRemark2IsNotNull() {
            addCriterion("remark2 is not null");
            return (Criteria) this;
        }

        public Criteria andRemark2EqualTo(Integer value) {
            addCriterion("remark2 =", value, "remark2");
            return (Criteria) this;
        }

        public Criteria andRemark2NotEqualTo(Integer value) {
            addCriterion("remark2 <>", value, "remark2");
            return (Criteria) this;
        }

        public Criteria andRemark2GreaterThan(Integer value) {
            addCriterion("remark2 >", value, "remark2");
            return (Criteria) this;
        }

        public Criteria andRemark2GreaterThanOrEqualTo(Integer value) {
            addCriterion("remark2 >=", value, "remark2");
            return (Criteria) this;
        }

        public Criteria andRemark2LessThan(Integer value) {
            addCriterion("remark2 <", value, "remark2");
            return (Criteria) this;
        }

        public Criteria andRemark2LessThanOrEqualTo(Integer value) {
            addCriterion("remark2 <=", value, "remark2");
            return (Criteria) this;
        }

        public Criteria andRemark2In(List<Integer> values) {
            addCriterion("remark2 in", values, "remark2");
            return (Criteria) this;
        }

        public Criteria andRemark2NotIn(List<Integer> values) {
            addCriterion("remark2 not in", values, "remark2");
            return (Criteria) this;
        }

        public Criteria andRemark2Between(Integer value1, Integer value2) {
            addCriterion("remark2 between", value1, value2, "remark2");
            return (Criteria) this;
        }

        public Criteria andRemark2NotBetween(Integer value1, Integer value2) {
            addCriterion("remark2 not between", value1, value2, "remark2");
            return (Criteria) this;
        }

        public Criteria andRemark3IsNull() {
            addCriterion("remark3 is null");
            return (Criteria) this;
        }

        public Criteria andRemark3IsNotNull() {
            addCriterion("remark3 is not null");
            return (Criteria) this;
        }

        public Criteria andRemark3EqualTo(Date value) {
            addCriterion("remark3 =", value, "remark3");
            return (Criteria) this;
        }

        public Criteria andRemark3NotEqualTo(Date value) {
            addCriterion("remark3 <>", value, "remark3");
            return (Criteria) this;
        }

        public Criteria andRemark3GreaterThan(Date value) {
            addCriterion("remark3 >", value, "remark3");
            return (Criteria) this;
        }

        public Criteria andRemark3GreaterThanOrEqualTo(Date value) {
            addCriterion("remark3 >=", value, "remark3");
            return (Criteria) this;
        }

        public Criteria andRemark3LessThan(Date value) {
            addCriterion("remark3 <", value, "remark3");
            return (Criteria) this;
        }

        public Criteria andRemark3LessThanOrEqualTo(Date value) {
            addCriterion("remark3 <=", value, "remark3");
            return (Criteria) this;
        }

        public Criteria andRemark3In(List<Date> values) {
            addCriterion("remark3 in", values, "remark3");
            return (Criteria) this;
        }

        public Criteria andRemark3NotIn(List<Date> values) {
            addCriterion("remark3 not in", values, "remark3");
            return (Criteria) this;
        }

        public Criteria andRemark3Between(Date value1, Date value2) {
            addCriterion("remark3 between", value1, value2, "remark3");
            return (Criteria) this;
        }

        public Criteria andRemark3NotBetween(Date value1, Date value2) {
            addCriterion("remark3 not between", value1, value2, "remark3");
            return (Criteria) this;
        }

        public Criteria andSeatnameIsNull() {
            addCriterion("seatName is null");
            return (Criteria) this;
        }

        public Criteria andSeatnameIsNotNull() {
            addCriterion("seatName is not null");
            return (Criteria) this;
        }

        public Criteria andSeatnameEqualTo(String value) {
            addCriterion("seatName =", value, "seatname");
            return (Criteria) this;
        }

        public Criteria andSeatnameNotEqualTo(String value) {
            addCriterion("seatName <>", value, "seatname");
            return (Criteria) this;
        }

        public Criteria andSeatnameGreaterThan(String value) {
            addCriterion("seatName >", value, "seatname");
            return (Criteria) this;
        }

        public Criteria andSeatnameGreaterThanOrEqualTo(String value) {
            addCriterion("seatName >=", value, "seatname");
            return (Criteria) this;
        }

        public Criteria andSeatnameLessThan(String value) {
            addCriterion("seatName <", value, "seatname");
            return (Criteria) this;
        }

        public Criteria andSeatnameLessThanOrEqualTo(String value) {
            addCriterion("seatName <=", value, "seatname");
            return (Criteria) this;
        }

        public Criteria andSeatnameLike(String value) {
            addCriterion("seatName like", value, "seatname");
            return (Criteria) this;
        }

        public Criteria andSeatnameNotLike(String value) {
            addCriterion("seatName not like", value, "seatname");
            return (Criteria) this;
        }

        public Criteria andSeatnameIn(List<String> values) {
            addCriterion("seatName in", values, "seatname");
            return (Criteria) this;
        }

        public Criteria andSeatnameNotIn(List<String> values) {
            addCriterion("seatName not in", values, "seatname");
            return (Criteria) this;
        }

        public Criteria andSeatnameBetween(String value1, String value2) {
            addCriterion("seatName between", value1, value2, "seatname");
            return (Criteria) this;
        }

        public Criteria andSeatnameNotBetween(String value1, String value2) {
            addCriterion("seatName not between", value1, value2, "seatname");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}